package com.ht.modules.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 电表小时数据
 */
@Data
@TableName("sk_device_electricity_hour")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DeviceElectricityHour {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 设备ID
     */
    private Integer deviceId;
    /**
     * 时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date dateTime;
    /**
     * 累计值
     */
    private java.math.BigDecimal value;

    // ---------- 导入字段 ----------

}
